package com.zzjson.springboot.api.impl;

import com.zzjson.dubbo.springboot.api.ISayHelloService;
import org.apache.dubbo.common.constants.CommonConstants;
import org.apache.dubbo.config.annotation.Service;

import javax.management.timer.Timer;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2020 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.dubbo.springboot.api</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2020年05月20日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
@Service(loadbalance = CommonConstants.DEFAULT_LOADBALANCE, weight = 2)
public class SayHelloServiceImpl implements ISayHelloService {

	public String sayHello() {
		try {
			Thread.sleep(Timer.ONE_SECOND);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}

		return "hello dubbo";
	}
}